home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / ZoomedVideo.h < prev   
Encoding:
C/C++ Source or Header  |  1997-08-12  |  4.1 KB  |  159 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ZoomedVideo.h
  3.  
  4.      Contains:    PC Card Family Zoomed Video Driver Interface
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1996-1997 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __ZOOMEDVIDEO__
  19. #define __ZOOMEDVIDEO__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __DEVICES__
  25. #include <Devices.h>
  26. #endif
  27.  
  28.  
  29.  
  30. #if PRAGMA_ONCE
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #if PRAGMA_IMPORT
  39. #pragma import on
  40. #endif
  41.  
  42. #if PRAGMA_STRUCT_ALIGN
  43.     #pragma options align=mac68k
  44. #elif PRAGMA_STRUCT_PACKPUSH
  45.     #pragma pack(push, 2)
  46. #elif PRAGMA_STRUCT_PACK
  47.     #pragma pack(2)
  48. #endif
  49.  
  50. #define kZVDriverName "\p.ZVPort"
  51.  
  52. /* Control codes */
  53.  
  54.  
  55. enum {
  56.     cscZVVideoEnable            = 2,                            /* Used to enable or disable ZV Video*/
  57.     cscZVSetCurrentAnalogValue    = 3,                            /* Used to set brightness, contrast, etc.*/
  58.     cscZVSetInput                = 9,                            /* Set video source to selected input*/
  59.     cscZVSetInputStandard        = 11                            /* Set the input to NTSC, PAL, or SECAM*/
  60. };
  61.  
  62. /* Status codes*/
  63.  
  64. enum {
  65.     cscZVGetVideoEnable            = 2,                            /* Indicates whether ZV Video is enabled*/
  66.     cscZVGetCurrentAnalogValue    = 3,                            /* Used to get brightness, contrast, etc.*/
  67.     cscZVGetDefaultAnalogValue    = 4,
  68.     cscZVGetVSyncState            = 5,                            /* Used to look for a Vertical Sync on ZV Video*/
  69.     cscZVGetInfo                = 6,                            /* Returns the ZV Information*/
  70.     cscZVGetInputFlags            = 7,                            /* Returns the input flags.*/
  71.     cscZVGetNumberOfInputs        = 8,                            /* Returns the number of video inputs*/
  72.     cscZVGetInput                = 9,                            /* Zero-based input number*/
  73.     cscZVGetInputFormat            = 10                            /* Returns whether input is compsite/s-video*/
  74. };
  75.  
  76.  
  77. /*
  78.   -----------------------------------------------------------------
  79.    Additional parameters for csInfoZV control call
  80.       A pointer to ZVInfo is passed in csParam[0] (and csParam[1])
  81.       which must be filled by the driver in response to this call.
  82. */
  83.  
  84. typedef UInt32                             ZVFeatures;
  85.  
  86. enum {
  87.     kZVHasAudio                    = (1 << 0),
  88.     kZVHasTVTuner                = (1 << 1),
  89.     kZVHasContrast                = (1 << 16),
  90.     kZVHasBrightness            = (1 << 17),
  91.     kZVHasSharpness                = (1 << 18),
  92.     kZVHasSaturation            = (1 << 19),
  93.     kZVHasHue                    = (1 << 20)
  94. };
  95.  
  96.  
  97. struct ZVInfo {
  98.     ZVFeatures                         features;
  99.     UInt32                             currentFlags;
  100.     Rect                             activeRect;
  101.     Boolean                         isInterlaced;
  102.     SInt8                             filler;
  103.     UInt32                             reserved1;
  104.     UInt32                             reserved2;
  105. };
  106. typedef struct ZVInfo ZVInfo;
  107.  
  108. struct ZVFlagRecord {
  109.     Boolean                         csFlag;
  110.     SInt8                             filler;
  111. };
  112. typedef struct ZVFlagRecord ZVFlagRecord;
  113.  
  114. /*
  115.   -----------------------------------------------------------------
  116.    Additional definitions for "AnalogCtlZV" control calls
  117.       A pointer to a ZVSetAnalogControlParam is passed to the driver
  118.       whenever the system needs to adjust one of the analog settings.
  119. */
  120. typedef UInt16                             ZVAnalogControlSelector;
  121.  
  122. enum {
  123.     kZVContrast                    = 1,                            /* Range:  0x0 <= no change to image, larger values increase the contrast*/
  124.     kZVBrightness                = 2,                            /* Range:  0x0 <= darkest setting, 0xffff = lightest setting*/
  125.     kZVSharpness                = 3,                            /* Range:  0x0 <= no sharpness filtering, 0xffff <= full sharpness filtering*/
  126.     kZVSaturation                = 4,                            /* Range:  0x0 <= min saturation, 0xffff <= max saturation        */
  127.     kZVHue                        = 5,                            /* Range:  0x0 <= -180º shift in hue, 0xffff <= 179º shift, 0x8000 <=0º shift*/
  128.     kZVBlackLevel                = 6,                            /* Range:  0x0 <= max black, 0xffff <= min black level*/
  129.     kZVWhiteLevel                = 7                                /* Range:  0x0 <= min white, 0xffff <= max white level*/
  130. };
  131.  
  132. struct ZVAnalogControlRecord {
  133.     ZVAnalogControlSelector         whichControl;
  134.     UInt16                             value;
  135. };
  136. typedef struct ZVAnalogControlRecord ZVAnalogControlRecord;
  137.  
  138.  
  139. #if PRAGMA_STRUCT_ALIGN
  140.     #pragma options align=reset
  141. #elif PRAGMA_STRUCT_PACKPUSH
  142.     #pragma pack(pop)
  143. #elif PRAGMA_STRUCT_PACK
  144.     #pragma pack()
  145. #endif
  146.  
  147. #ifdef PRAGMA_IMPORT_OFF
  148. #pragma import off
  149. #elif PRAGMA_IMPORT
  150. #pragma import reset
  151. #endif
  152.  
  153. #ifdef __cplusplus
  154. }
  155. #endif
  156.  
  157. #endif /* __ZOOMEDVIDEO__ */
  158.  
  159.